package com.company.eos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.eos.domain.AuditExpense;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.HashMap;

/**
* @author Real
* @description 针对表【tb_audit_reim(报销单表)】的数据库操作Mapper
* @createDate 2022-04-28 18:31:47
* @Entity com.company.eos.pojo.AuditReim
*/
@Mapper
@Repository
public interface AuditExpenseMapper extends BaseMapper<AuditExpense> {

    /**
     * 查询报销分页数据
     *
     * @param param
     * @return
     */
    ArrayList<HashMap> searchExpenseByPage(HashMap param);

    /**
     * 查询报销数据总数
     *
     * @param param
     * @return
     */
    long searchExpenseCount(HashMap param);

    /**
     * 更新请假记录InstanceId
     *
     * @param param
     * @return
     */
    int updateExpenseInstanceId(HashMap param);

    /**
     * 根据ID查询报销单详情
     *
     * @param param
     * @return
     */
    HashMap searchExpenseById(HashMap param);

    /**
     * 根据ID查询报销记录instanceId
     *
     * @param id
     * @return
     */
    String searchInstanceIdById(int id);

    /**
     * 删除报销记录
     *
     * @return
     */
    int deleteExpenseById(HashMap param);

}




